package Dao.impl;

import Dao.Student;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Repository("student")
public class StudentDaoImpl implements Student {
    @Value("${name}")
    private String name;
    @Value("18")
    private Integer age;



    @Override
    public void save() {
        System.out.println("StudentDaoImpl..."+"我是："+name+"年龄："+age);
    }
}
